
import React from "react";
import { Editor } from "@tinymce/tinymce-react";

function Texts() {
    return (
        <div>
            <Editor
                init={{
                    height: 500,
                    language: "zh_CN",
                    plugins: [
                        "advlist autolink lists link image charmap print preview anchor",
                        "searchreplace visualblocks code fullscreen",
                        "insertdatetime media table paste code help wordcount",
                    ],
                    toolbar:
                        "undo redo | formatselect |fontselect fontsizeselect | bold italic backcolor forecolor | \
                        alignleft aligncenter alignright alignjustify | \
                        bullist numlist outdent indent | removeformat | help",
                }}
            />
        </div>
    );
}

export default Texts;
